<div class="bodywrap"> 

                   <div class="subhead" style="margin-top:5%">Refer your Friends </div>
	<div style="width:99%; margin:0 auto"></div>
	
<div style="padding:10px 0; margin:5px 0 0 0; background:#e5e8ef;">
    <div class="quizbutton">
		<div class="grades"></div>
		<?php if(Yii::app()->user->hasFlash('successreferal')){
       echo "<div style='color:red;'>".Yii::app()->user->getFlash('successreferal')."</div>";
    }?>
		<?php if(Yii::app()->user->hasFlash('successreferal1')){
       echo "<div style='color:green;'>".Yii::app()->user->getFlash('successreferal1')."</div>";
    }?>
    <div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'options-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note"> Atleast one email address is required.</p>

   <?php foreach ($arrModels as $key=>$model) { ?>
	<div class="row">
		Email Address<?php echo $key+1;?>: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="email<?php echo $key;?>"  id="email<?php echo $key;?>">		
	</div>

  <?php } ?>
  
	<div class="row buttons">
	 <br/>
		<?php echo CHtml::submitButton('Send'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
		
        <br clear="all"/> 
	</div>   
</div>
            
</div>